def var(* args):
    def mean(z):
        def sum(x):
            sum1 = 0
            for i in x:
                sum1 += i
            return sum1
        return sum(args) / len(args)
        pass
    def sums(y):
        sum2 = 0
        for i in y:
            sum2 += (i - mean(args)) ** 2
        return sum2
    return sums(args) / len(args)

result = var(1, 3, 5)
print(result)
